﻿using System.Windows.Input;
using Crusades.Helpers;

namespace Crusades {
  public partial class Page{
    public Page() {
      InitializeComponent();
      var P0 = new Vector(13, 159);
      var P1 = new Vector(26, 41);
      var P2 = new Vector(680, 272);
      var P3 = new Vector(575, 155);

      var P = new []{P0,P1,P2,P3};
      Edna.AddBezierSegment(P);
      //Edna.RenderTo(.5);
      
    }

    private void LayoutRoot_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) {
        myStoryboard.Completed += new System.EventHandler(myStoryboard_Completed);
      myStoryboard.Begin();
      
    }

    void myStoryboard_Completed(object sender, System.EventArgs e) {
        ArrowBoard.Begin();
    }
  }
}
